package repository

import "pq/models"

type TestCategoryRepository struct{

}
func (tcr TestCategoryRepository) GetById(id int) (models.PqTestCategory,error){
	o := models.GetSlaveDb()
	c := models.PqTestCategory{}
	if err := o.QueryTable("pq_test_category").Filter("id",id).One(&c);err!=nil{
		return models.PqTestCategory{},err
	}
	return c,nil
}
